package com.lino.design;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @description: 单例模式-懒汉模式(线程不安全)
 * @author: lingjian
 * @createDate: 2022/12/20 8:52
 */
public class Singleton_01 {

    private static Singleton_01 instance;

    private Singleton_01() {
    }

    public static Singleton_01 getInstance() {
        if (null != instance) {
            return instance;
        }
        instance = new Singleton_01();
        return instance;
    }
}
